<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.tjsinfo.tjsoa.common.TestRiQi"%>
<%@page import="com.tjsinfo.tjsoa.common.DateTimeFromConver"%>
<%@page import="com.tjsinfo.tjsoa.workplan.vo.WorkPlanMain"%>
<%@page import="com.tjsinfo.tjsoa.system.vo.User"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
session.setAttribute("type","Q");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <base href="<%=basePath%>"/>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>粮油集团办公自动化协作平台</title>
	<link rel="stylesheet" type="text/css" href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" />
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
<script type="text/javascript" src="<%=basePath %>js/common/global/pageControl.js"></script>
<link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" id="txlz7"/>
<script type="text/javascript" src="<%=basePath%>js/ieverson.js"></script>
<script type="text/javascript" >
	function tdchick(number)
	{
		document.getElementById('black_over').style.display = "block";
		document.getElementById('addfrom').style.top =  document.body.clientHeight/2;
		document.getElementById('addfrom').style.left = document.body.clientWidth/5;
		document.getElementById('addfrom').style.display = "block";
		document.getElementById('xiugai').style.display = "none" ;
		document.getElementById('shanchu').style.display = "none" ;
		document.getElementById('wcqk').style.display = "none" ;
		document.getElementById('chaxun').style.display = "none" ;
		document.getElementById('tianja').style.display = "inline" ;
		document.getElementById('number').value=number;
		
		
	}
	function tdchick2(number,id)
	{
		
		document.getElementById('black_over').style.display = "block";
		document.getElementById('addfrom').style.top =  document.body.clientHeight/2;
		
		document.getElementById('addfrom').style.left = document.body.clientWidth/5;
		document.getElementById('addfrom').style.display = "block";
		document.getElementById('tianja').style.display = "none" ;
		document.getElementById('workplanid').value  = id;
		document.getElementById('number').value=number;
		
	}
	function tdchick3(number,id)
	{
		document.getElementById('black_over').style.display = "block";
		document.getElementById('addfrom').style.top =  document.body.clientHeight/2;
				document.getElementById('workplanid').value  = id;
		
		document.getElementById('addfrom').style.left = document.body.clientWidth/5;
		document.getElementById('number').value=number;
		document.getElementById('addfrom').style.display = "block";
		document.getElementById('tianja').style.display = "none" ;
		document.getElementById('shanchu').style.display = "none" ;
		document.getElementById('xiugai').style.display = "none" ;
		
	}
	function addWorkPlan()
	{
		document.form1.submit();
	}
	function deleteWorkPlan()
	{
		
			
		var form1 =  document.getElementById('form1');
		form1.setAttribute('action','<%=basePath%>tjsinfo/tjsoa/workplan/deleteWorkPlan.do');
		document.form1.submit();
	}
	function deletefrom()
	{
		qx();
		document.getElementById('black_over').style.display = "block";
		document.getElementById('deletefrom').style.top =  document.body.clientHeight/2;
		document.getElementById('deletefrom').style.left = document.body.clientWidth/5;
		document.getElementById('deletefrom').style.display = "block";
		
	}
	function updateWorkPlan()
	{
		var form1 =  document.getElementById('form1');
		form1.setAttribute('action','<%=basePath%>tjsinfo/tjsoa/workplan/selectOneWorkPlan.do');
		document.form1.submit();
	}
	function chaxunWorkPlan()
	{
		var form1 =  document.getElementById('form1');
		form1.setAttribute('action','<%=basePath%>tjsinfo/tjsoa/workplan/selectWorkPlan.do');
		document.form1.submit();
	}
	function wanchengWorkPlan()
	{
		var form1 =  document.getElementById('form1');
		form1.setAttribute('action','<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanSituationFrom.do');
		document.form1.submit();
	}
	function qx()
	{
		document.getElementById('black_over').style.display = "none";
		document.getElementById('addfrom').style.display = "none";
		document.getElementById('xiugai').style.display = "inline" ;
		document.getElementById('shanchu').style.display = "inline" ;
		document.getElementById('wcqk').style.display = "inline" ;
		document.getElementById('chaxun').style.display = "inline" ;
		document.getElementById('tianja').style.display = "inline" ;
		
	}
	function qxdeletefrom()
	{
		document.getElementById('black_over').style.display = "none";
		document.getElementById('deletefrom').style.display = "none";
	}
	function selectfrom()
	{
		document.getElementById('selectfrom').style.display = "block";
		document.getElementById('black_over').style.display = "block";
		document.getElementById('selectfrom').style.top =  document.body.clientHeight/2;
		document.getElementById('selectfrom').style.left = document.body.clientWidth/5;
		
	}
	function qxselectfrom()
	{
		document.getElementById('black_over').style.display = "none";
		document.getElementById('selectfrom').style.display = "none";
	}
	function select()
	{
		var keyword = document.getElementById('keyword');
		if(keyword.value == '')
		{
			alert('请输入关键字');
			return;
		}
		document.slectform.submit();
	}
</script>
<style >
	.contact_content {
			display: none;
			position: absolute;
			border: 1px solid #FFF;
			border-bottom:none;
			z-index:1800;
			overflow: auto;
		}
		.black_overlays{
			display: none;
			position: absolute;
			top: 0%;
			left: 0%;
			width: 100%;
			height: 100%;
			background-color: #C1EBFC;
			z-index:1002;
			-moz-opacity: 0.8;
			opacity:.80;
			filter: alpha(opacity=30);
		}
	
</style>
<style>
#container {
		    width:600px;
		    height:300px;
		    border:3px solid #c3daf9;
		}
		
.calendar {
    background-image:url(<%=basePath%>images/icon_64.gif) !important;
}

.blist {
    background-image: url(<%=basePath%>images/icon_64.gif) !important;
}

.bmenu {
    background-image: url(<%=basePath%>images/ju.gif) !important;
}

.menu-title{
    background: #ebeadb url(<%=basePath%>images/icon_64.gif) repeat-x;
    border-bottom:1px solid #99bbe8;
    color:#15428b;
    font:bold 10px tahoma,arial,verdana,sans-serif;
    display:block;
    padding:3px;
}
.lan01{
background: url(images/lanbg01.gif) no-repeat 0 0; width:6px; height:24px;} 
.lan02{
background: url(images/lanbg02.gif) repeat-x; width:99%; height:24px;}            
.lan03{
background: url(images/lanbg03.gif) no-repeat; width:8px; height:24px;}             
.cha{
padding-top:3px}           
</style> 
</head>
  
  <body>
  	 	<%
			Date date = (Date)request.getAttribute("yueli");
  			
			Map map = (Map)request.getAttribute("map");

		%>
   <div id="right">
        <div  >
      	<div id="menu" style="margin: 0"></div>
	  </div>
     
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="92%">
          <tr>
            <td width="100%" valign="top" height="100%">
               <div class="contabwd">
                 <div id="plan_month">
                    <!--周记录-->
                   <div class="plan_div" >
                     <table width="100%" border="0" class="page">
                        <tr>
                          <td width="28%">&nbsp;</td>
                          <td width="5%"><a href="<%=basePath%>tjsinfo/tjsoa/workplan/workPlanJiDuModleUp.do?date=<%=DateTimeFromConver.zhuanhuariqi(date) %>" class="a1">上一年</a></td>
                          <td width="3%">&nbsp;</td>
                          <td width="31%"><strong><%=date.getYear()+1900 %>年1月1日 至 <%=date.getYear()+1900 %>年12月31日</strong></td>
                          <td width="7%"><a href="<%=basePath%>tjsinfo/tjsoa/workplan/workPlanJiDuModleDown.do?date=<%=DateTimeFromConver.zhuanhuariqi(date) %>" class="a2">下一年</a></td>
                          <td width="26%">&nbsp;</td>
                        </tr>
                     </table>
                     <br /><br /><br /><br />
                      <table width="462" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td background="images/jidubg.gif" width="462" height="311" align="center">
                            <table width="460" height="276"border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                    <td width="230" height="126" valign="top" >
                                    <%
                                    	if(map.get(1) == null)
                                    	{
                                    %>
                                    <a href="<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanFrom.do?time=&year=<%=date.getYear()+1900 %>&type=Q&number=1" >
                                    <img src="images/large_wu.gif" />
                                    </a>
                                    <% 		
                                    	}
                                    	else 
                                    	{
                                    		 WorkPlanMain workPlanMain = (WorkPlanMain)map.get(1);
                                    		 if(workPlanMain.getStart() == 1)
                                    		 {
                                    %>
                                    <a href="javascript:tdchick2('1','<%=workPlanMain.getId() %>')" >
                                    <img src="images/large_yzd.gif" />
                                    </a>	
                                    <%			 
                                    		 }
                                    		 else if(workPlanMain.getStart() == 2)
                                    		 {
                                    %>
                                    <a href="javascript:tdchick3('1','<%=workPlanMain.getId() %>')" >
                                    <img src="images/large_ycy.gif" />
                                    </a>
                                    <% 			 
                                    		 }
                                    		 else if(workPlanMain.getStart() == 3)
                                    		 {
                                    %>
                                    <a href="javascript:tdchick3('1','<%=workPlanMain.getId() %>')" >
                                    <img src="images/large_ywc.gif" />
                                    </a>
                                    <% 			 
                                    		 }	
                                    	}
                                    %>
                                    
                                    </td>
                                    <td width="230" valign="top">
                                            <%
                                    	if(map.get(2) == null)
                                    	{
                                    %>
                                    <a href="<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanFrom.do?time=&year=<%=date.getYear()+1900 %>&type=Q&number=2" >
                                    <img src="images/large_wu.gif" />
                                    </a>
                                    <% 		
                                    	}
                                    	else 
                                    	{
                                    		 WorkPlanMain workPlanMain = (WorkPlanMain)map.get(2);
                                    		 if(workPlanMain.getStart() == 1)
                                    		 {
                                    %>
                                    <a href="javascript:tdchick2('2','<%=workPlanMain.getId() %>')" >
                                    <img src="images/large_yzd.gif" />
                                    </a>	
                                    <%			 
                                    		 }
                                    		 else if(workPlanMain.getStart() == 2)
                                    		 {
                                    %>
                                    <a href="javascript:tdchick3('2','<%=workPlanMain.getId() %>')" >
                                    <img src="images/large_ycy.gif" />
                                    </a>
                                    <% 			 
                                    		 }
                                    		 else if(workPlanMain.getStart() == 3)
                                    		 {
                                    %>
                                    <a href="javascript:tdchick3('2','<%=workPlanMain.getId() %>')">
                                    <img src="images/large_ywc.gif" />
                                    </a>
                                    <% 			 
                                    		 }	
                                    	}
                                    %>
                                    
                                    
                                    </td>
                              </tr>
                                  <tr>
                                    <td valign="bottom">
                                            <%
                                    	if(map.get(3) == null)
                                    	{
                                    %>
                                    <a href="<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanFrom.do?time=&year=<%=date.getYear()+1900 %>&type=Q&number=3" >
                                    <img src="images/large_wu.gif" />
                                    </a>
                                    <% 		
                                    	}
                                    	else 
                                    	{
                                    		 WorkPlanMain workPlanMain = (WorkPlanMain)map.get(3);
                                    		 if(workPlanMain.getStart() == 1)
                                    		 {
                                    %>
                                    <a href="javascript:tdchick2('3','<%=workPlanMain.getId() %>')" >
                                    <img src="images/large_yzd.gif" />
                                    </a>	
                                    <%			 
                                    		 }
                                    		 else if(workPlanMain.getStart() == 2)
                                    		 {
                                    %>
                                    <a href="javascript:tdchick3('3','<%=workPlanMain.getId() %>')" >
                                    <img src="images/large_ycy.gif" />
                                    </a>
                                    <% 			 
                                    		 }
                                    		 else if(workPlanMain.getStart() == 3)
                                    		 {
                                    %>
                                    <a href="javascript:tdchick3('3','<%=workPlanMain.getId() %>')">
                                    <img src="images/large_ywc.gif" />
                                    </a>
                                    <% 			 
                                    		 }	
                                    	}
                                    %>
                                    
                                    
                                    </td>
                                    <td valign="bottom">
                                            <%
                                    	if(map.get(4) == null)
                                    	{
                                    %>
                                    <a href="<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanFrom.do?time=&year=<%=date.getYear()+1900 %>&type=Q&number=4" >
                                    <img src="images/large_wu.gif" />
                                    </a>
                                    <% 		
                                    	}
                                    	else 
                                    	{
                                    		 WorkPlanMain workPlanMain = (WorkPlanMain)map.get(4);
                                    		 if(workPlanMain.getStart() == 1)
                                    		 {
                                    %>
                                    <a href="javascript:tdchick2('4','<%=workPlanMain.getId() %>')" >
                                    <img src="images/large_yzd.gif" />
                                    </a>	
                                    <%			 
                                    		 }
                                    		 else if(workPlanMain.getStart() == 2)
                                    		 {
                                    %>
                                    <a href="javascript:tdchick3('4','<%=workPlanMain.getId() %>')" >
                                    <img src="images/large_ycy.gif" />
                                    </a>
                                    <% 			 
                                    		 }
                                    		 else if(workPlanMain.getStart() == 3)
                                    		 {
                                    %>
                                    <a href="javascript:tdchick3('4','<%=workPlanMain.getId() %>')">
                                    <img src="images/large_ywc.gif" />
                                    </a>
                                    <% 			 
                                    		 }	
                                    	}
                                    %>
                                    
                                    </td>
                                  </tr>
                              </table>
                            </td>
                          </tr>
                     </table>
                   </div>
                   
                </div>
              </div>
            </td>
          </tr>
      </table>
      
</div>


   
      
  
<form action="<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanFrom.do" name="form1" method="post" id="form1">
		 <div style="display: none;" class="contact_content" id="addfrom">
             <table width="478" border="0" cellpadding="0" cellspacing="0" >
               <tr>
                 <td>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="lan01">&nbsp;</td>
                        <td class="lan02">
                          <table width="99%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="5%" align="center" style="padding-top:3px;"><img src="images/m_icon051.gif" /></td>
                                <td width="89%" align="left" style="color:#FFFFFF; font-weight:bold;padding-top:3px;">编辑</td>
                                <td width="6%"><div class="cha"><a href="javascript:qx()"><img src="images/cha.gif" /></a></div></td>
                              </tr>
                           </table>
                        </td>
                        <td class="lan03">&nbsp;</td>
                      </tr>
                  </table>
                 </td>
               </tr>
               <tr>
                 <td height="109" class="zz">
                     <table width="90%" height="80%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                      <tr>
                        <td width="17%" align="center"><img src="images/bjicon.jpg" /></td>
                        <td width="83%" align="left">如有需要请点击以下按钮</td>
                      </tr>
                      <tr>
                        <td align="center" colspan="2" style="border-top:1px #CFCFD1 solid"><a href="javascript:updateWorkPlan()" ><img src="images/xiugai.gif" id="xiugai"/></a>&nbsp;<a href="javascript:deletefrom()" ><img src="images/shanchu.gif" id="shanchu"/></a>&nbsp;<a href="javascript:wanchengWorkPlan()" ><img src="images/wcqk.gif" id="wcqk"/></a>&nbsp;<a href="javascript:chaxunWorkPlan()" ><img src="images/chaxun.gif" id="chaxun" /></a>&nbsp;<a href="javascript:addWorkPlan()" ><img src="images/tianjia.gif" id="tianja"/></a>&nbsp;<a href="javascript:qx()" ><img src="images/qx.gif" id="qx"/></a>
                        </td>
                       </tr>
                    </table>
                 </td>
               </tr>
             </table>
            </div>
            
            
            
             <div style="display: none;" class="contact_content" id="deletefrom">
             <table width="478" border="0" cellpadding="0" cellspacing="0" >
               <tr>
                 <td>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="lan01">&nbsp;</td>
                        <td class="lan02">
                          <table width="99%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="5%" align="center" style="padding-top:3px;"><img src="images/m_icon051.gif" /></td>
                                <td width="89%" align="left" style="color:#FFFFFF; font-weight:bold;padding-top:3px;">编辑</td>
                                <td width="6%"><div class="cha"><a href="javascript:qxdeletefrom()"><img src="images/cha.gif" /></a></div></td>
                              </tr>
                           </table>
                        </td>
                        <td class="lan03">&nbsp;</td>
                      </tr>
                  </table>
                 </td>
               </tr>
               <tr>
                 <td height="109" class="zz">
                     <table width="90%" height="80%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                      <tr>
                        <td width="17%" align="center"><img src="images/bjicon.jpg" /></td>
                        <td width="83%" align="left">是否要删除您选择的计划,请确认?</td>
                      </tr>
                      <tr>
                        <td align="center" colspan="2" style="border-top:1px #CFCFD1 solid"><a href="javascript:deleteWorkPlan()" ><img src="images/qd.gif" />&nbsp;<a href="javascript:qxdeletefrom()" ><img src="images/qx.gif" /></a>
                        </td>
                       </tr>
                    </table>
                 </td>
               </tr>
             </table>
            </div>      
		<input  type="hidden" name="type" value="<%="Q"%>"/>
		<input  type="hidden" name="year" value="<%=date.getYear()+1900%>"/>
		<input  type="hidden" name="number" value="0"/>
		<input  type="hidden" name="time" value="" id="time"/>
		<input  type="hidden" name="id" value="" id="workplanid"/>
		
	</form>
 <form action="<%=basePath%>tjsinfo/tjsoa/workplan/workplanselect.do" name="slectform" method="post">
   		 
   		 <div style="display: none;" id="selectfrom" class="contact_content">
             <table width="478" border="0" cellpadding="0" cellspacing="0" >
               <tr>
                 <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td class="lan01">&nbsp;</td>
                            <td class="lan02">
                              <table width="99%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="5%" align="center" style="padding-top:3px;"><img src="images/jing.gif" /></td>
                                    <td width="89%" align="left" style="color:#FFFFFF; font-weight:bold;padding-top:3px;">查询</td>
                                    <td width="6%"><div class="cha"><a href="javascript:qxselectfrom()"><img src="images/cha.gif" /></a></div></td>
                                  </tr>
                               </table>
                            </td>
                            <td class="lan03">&nbsp;</td>
                          </tr>
                     </table>
                 </td>
               </tr>
               <tr>
                 <td height="150" class="zz">
                     <table width="90%" height="90%" border="0" cellspacing="0" cellpadding="0" class="researchtab" >
                      <tr>
                        <td width="18%">类型：</td>
                        <td align="left">
                        <select name="type" class="textinput" >
                        <option value="" >全部</option>
                        <option value="D" selected="selected">日计划</option>
                        <option value="W">周计划</option>
                        <option value="M">月计划</option>
                        <option value="Q">季度计划</option>
                        <option value="H">半年计划</option>
                        <option value="Y">年计划</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td>关键字：</td>
                        <td align="left"><input name="keyword" type="text" size="50"/></td>
                      </tr>
                      <tr>
                        <td colspan="2" style="border-top:1px #CFCFD1 solid" height="40"><a href="javascript:select()"><img src="images/chaxun.gif" /></a>
                        </td>
                       </tr>
                   </table>
                 </td>
               </tr>
             </table>
            </div>
   
	</form>
                        <div class="black_overlays" style="display: none;" id="black_over"></div>
<script type=text/javascript>
Ext.onReady(function(){
Ext.BLANK_IMAGE_URL="ajaxFramework/ext-2.1/resources/images/default/s.gif";
		var menu = new Ext.menu.Menu({
	        id: 'mainMenu',
	        items: [
	            {
	                text: '添加年计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/addWorkPlanYearFrom.do';
					}
	            },
	            {
	                text: '查看',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanYearModle.do';
					}
	            }
	        ]
	    });
	    
		var menuList = new Ext.menu.Menu({
	        id: 'mainMenuList',
	        items: [
	            {
	                text: '日计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?type=D';
					}
	            },
	            {
	                text: '周计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?type=W';
					}
	            },
	            {
	                text: '月计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?type=M';
					}
	            },
	            {
	                text: '季度计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?type=Q';
					}
	            },
	            {
	                text: '半年计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?type=H';
					}
	            },
	            {
	                text: '年计划',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanlistmode.do?type=Y';
					}
	            }
	        ]
	    });
		var tb = new Ext.Toolbar(
			{
				height:25
			}
		);
	
	    tb.render('menu');
		tb.add({
	            text:'<font color="black">日计划</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanDateModle.do';
				}
	        
	    },{
	            text:'<font color="black">周计划</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanWeekModle.do';
				}
	        
	    },{
	            text:'<font color="black">月计划</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanMonthModle.do';
				}
	        
	    },{
	            text:'<font color="black">季度计划</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanJiDuModle.do';
				}
	        
	    },{
	            text:'<font color="black">半年计划</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanHalfYearModle.do';
				}
	        
	    },{
	            text:'<font color="black">年计划</font>',
	            iconCls: 'bmenu',  // <-- icon
	            menu: menu  // assign menu by instance
	        
	    },{
	            text:'<font color="black">列表视图</font>',
	            iconCls: 'bmenu',  // <-- icon
	            menu: menuList  // assign menu by instance
	        
	    },
	    {
	            text:'<font color="black">设置默认审批人</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/workPlanSetDefineFrom.do';
				}
	    },
	    {
	            text:'<font color="black">查询</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					selectfrom();
				}
	    }<%
	   User user =  (User)session.getAttribute("user");
	    	if(user.getPermission().indexOf(",25,") != -1||user.getPermission().indexOf(",25,") == -1)
	    	{
	   %>,{
	            text:'<font color="black">审批</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/workplan/checkDefalntWorkPlan.do';
				}
	    }<% 		
	    	}
	    %>);
		
	}
);
</script>                         
  </body>
</html>